package com.jcfk.eam.dao.main;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.common.web.domain.DataPage;
import com.jcfk.eam.domain.dto.main.EamRepayRecordDTO;
import com.jcfk.eam.domain.po.main.EamGrantRecord;
import com.jcfk.eam.domain.query.main.EamRepayRecordQuery;
import com.jcfk.eam.domain.query.main.EamGrantRecordQuery;
import com.jcfk.eam.domain.dto.main.EamGrantRecordDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 发放记录
 * 
 * @author yql
 * @email 522891237@gqq.com
 * @date 2024-07-29
 */
@Repository
public interface EamGrantRecordDao extends BaseDao<EamGrantRecord> {
    /**
     * 发放记录分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<EamGrantRecordDTO> queryByPage(@Param("page") DataPage<EamGrantRecordDTO> page, @Param("query") EamGrantRecordQuery query);

    /**
     * 发放记录分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<EamRepayRecordDTO> queryRepayByPage(@Param("page") DataPage<EamRepayRecordDTO> page, @Param("query") EamRepayRecordQuery query);

    EamRepayRecordDTO getDetails(@Param("id") String id);
}
